Class LoadThread<T extends java.io.Serializable & java.lang.Comparable<T>>

  • All Implemented Interfaces:
    java.lang.Runnable

    public class LoadThread<T extends java.io.Serializable & java.lang.Comparable<T>>
    extends GraphicThread
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      LoadThread​(MyPane<T> _pane, java.lang.String filename, java.lang.String next_t)
      konstruktor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getNext_t()  
      void run()
      otvori subor, zbytocny uvod jsonu preskoci nasledne ak nemame nasledujuci thread, znamena to ze nacitavame do stromu cislo 1 ak mame nacitavame do stromu cislo 2 a spustame ziadany thread
      • Methods inherited from class java.lang.Thread

        activeCount, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LoadThread

        public LoadThread​(MyPane<T> _pane,
                          java.lang.String filename,
                          java.lang.String next_t)
        konstruktor
        Parameters:
        _pane - smernik na pane na ktorom bude pracovat
        filename - nazov suboru z ktoreho bude citat strom
        next_t - typ threadu ktory sa bude na konci volat ( string je jednoduchsi ako Class param )
    • Method Detail

      • getNext_t

        public java.lang.String getNext_t()
        Returns:
        vrati nasledujuci thread
      • run

        public void run()
        otvori subor, zbytocny uvod jsonu preskoci nasledne ak nemame nasledujuci thread, znamena to ze nacitavame do stromu cislo 1 ak mame nacitavame do stromu cislo 2 a spustame ziadany thread
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class GraphicThread